<?php
/**
* This View is used by all non-admin UIs throughout Scribble and the main
* application. For admin UIs use ScribbleAdminView instead.
*
* Copyright (c) 2009 James Gauld <james@jamesgauld.net>
* This file is part of Scribble.
* @license http://www.scribblecms.co.uk/license.txt
*
* @package Scribble
*/
use Buan\Config;
use Buan\View;
use Buan\PhpViewEngine;
use Buan\ViewHelper\Html as HtmlHelper;
class ScribblePublicView extends View {

	/**
	* Constructor.
	*
	* @param Buan\IViewEngine A rendering engine instance
	* @return ScribbleAdminView
	*/
	public function __construct($engine=NULL) {

		// If $engine is unspecified, then default to using our own
		if($engine===NULL) {
			$engine = new PhpViewEngine();
		}
		parent::__construct($engine);

		// Load and prepare the HTML helper
		$this->loadHelper('html');
		$this->helpers->html->setUrlSuffix(Config::get('ext.Scribble.urlSuffix'));
	}
}
?>